<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>100课堂外教预约 外教一对一 英语口语 英语在线培训 100课堂网</title>
<meta name="keywords" content="英语学习，在线外教一对一，在线英语学习，100课堂" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="user/css/css.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="user/js/jquery-1.7.1.min.js?v=<?=WEB_VERSION?>"></script>
<script type="text/javascript" src="user/js/js.js?v=<?=WEB_VERSION?>"></script>
<title>100课堂在线英语学习</title>
</head>
<body>
<?include('userTop.php')?>
<div class="P_content">
	<?=include('userLeft.php')?>
   <div class="Fr">
   		<div class="dataTada" style="margin-top:20px;">
         <div class="dataTada_U1">
         	<h4><?=$y?>年<?=$m?>月</h4>
        	<ul class="dataTable">
        		<?=$date?>
        	</ul>
         </div>
         <div class="dataTada_U1">
         	<h4><?=$y1?>年<?=$m1?>月</h4>
        	<?=$date1?>
         </div>
         <div class="dataTada_U2">
         	<div style="width:254px; padding:8px; height:100px; background:#f3f3f3;">← 请点击日历中您希望上课的日期（二周之内）。将会显示在该日期能够预约课程的时间及老师。<strong style="font-size:20px; color:#F00;">open</strong>表示能够预约。请点击该按钮预约课程。</div>
            <div style="width:254px; padding:8px; height:32px;background:#f3f3f3; margin:14px 0 0 0;"><img src="user/images/tach2.jpg" />表示可以预约老师上课</div>
            <div style="width:270px; height:30px; line-height:30px; background:#8EC206; color:#fff; text-align:center; font-size:16px;">按照以下条件搜索老师</div>
         </div>
        </div>
        <form action="teacher.htm" method="post" name="Forsd">
        <input type="hidden" name="search" value="search">
        <?$date = isset($_GET['date'])?$_GET['date']:'';?>
        <input name="date" type="hidden" value="<?=$date?>" />
        	<ul class="Serch_is">
            	<li class="Ser_tab">预约时间：</li>
                <li><select id="Ttime" name="time">
                <option value="">不指定上课时间</option>
                <?
                foreach ($time as $k=>$v){
				?>
                <option value="<?=$k?>" <?if($k==$select_time){?>selected<?}?>><?=$v?></option>
          		  <?
				}
					?>
                </select></li>
                     <li class="Ser_tab Ser_tab2">擅长课程：</li>
                <li class="Teahjsie">
 				<a href="javascript:;" date="0" <?if($select_good_course==0){?> class="onSerchs" <?}?>>不限</a>
                <?
                foreach($course as  $k=>$v){
				?>
                <a href="javascript:;" date="<?=$k?>" <?if($select_good_course==$k){?> class="onSerchs" <?}?>><?=$v?></a>
                <?
				}
				?>
                <input type="hidden" name="good_course" value="<?=$select_good_course?>" id="goods_course"/>
                <div class="clearc"></div>
             </li>
                <li class="Ser_tab">适合级别：</li>
                <li class="DengJisccsex"><a href="javascript:;" date="-1" <?if($select_english_level==="-1"){?> class="onSerchs"<?}?> >不限</a>
			      <?
				      foreach ($level as $k=>$v){
					  ?>          
				      	<a href="javascript:void(0);" date="<?=$k?>" <?if($select_english_level==$k){?> class="onSerchs" <?}?>><?=$v?></a>
				      <?
					  }
				 ?>
     			 <input type="hidden" name="english_level" value="<?=$select_english_level?>" /></li>
                <li class="Ser_tab">老师姓名：</li>
                <li><input type="text" name="name" value="<?=$select_name?>"/><span style="padding-left:20px; color:#F90;">不区分大小写</span>
                <li class="Ser_tab">老师性别：</li>
                <li class="SexDengJixsd"><a href="javascript:void(0)" date="0" <?if($select_sex==0){?> class="onSerchs" <?}?>>不限</a>
                <a href="javascript:void(0)" date="<?=SEX_MALE?>" <?if($select_sex==SEX_MALE){?> class="onSerchs" <?}?>>男</a>
                <a href="javascript:void(0)" date="<?=SEX_FEMALE?>" <?if($select_sex==SEX_FEMALE){?>class="onSerchs" <?}?>>女</a>
                <input type="hidden" name="sex" value="<?=$select_sex?>" /></li>
                <li class="Ser_mixd">
                	<span onclick="document.Forsd.submit();">开始搜索老师</span>
                </li>
            </ul>
        </form>
        
       <div align="center" style="padding-bottom:15px;padding-top:15px;padding-left:200px;display:block;">
        <?=$page?></div>        
        <div style="display: block;">
 		            <?
		             $i=0;
		            foreach($list as $v){
					?>       
					<?if($i%4==0){?>    
         			  <ul class="Teach_Ico" id="Teach_Ico">
		            	<li style="width:100px;height:auto;">
		            	<span class="Teach_class_header">
		            	<dd style="font-size: 12pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;margin-top:50px;">
		            	开课信息
		            	</dd>
		            	</span>
		            	 <?foreach($time_pair as $k_time=>$v_time){?>
		            	 	<?if($k_time>=$start_book_time){?>
		            			<span class="Teach_class_header1"><?=$v_time?></span>
		            		<?}?>
		            	<?}?>
		                </li>		
		            <?}?>    			
                	<li id="<?=$v['id']?>" style="height:auto;margin-left:4px;">
                	<div style="height:180px;display:block;">
                	<p>
                	<a href="teacher_info.htm?id=<?=$v['id']?>">
                		<img src="<?=SITE_URL.$v['list_portrait']?>" width="80" height="80"  />
                	</a>
                	</p>
                    <p><?=$v['name']?>
                    	</a></p>
                    <p>
                    <?if($v['education_experience']>1){?>
                    	<img src="user/images/xingxing<?=$v['education_experience']?>.png" />
                    <?}else{?>
	                    <img src="user/images/xingxing.png" />
                    <?}?>
                    </p>
                    <p>
                   	 <object width="110" height="20" data="user/js/introplayer.swf" type="application/x-shockwave-flash">
                   	    <param name="wmode" value="opaque" />
                        <param value="user/js/introplayer.swf" name="movie">
                        <param value="file=<?=$v['introduce']?>" name="FlashVars">
					</object>
                    </p>
                    </div>
                    <div style="height:auto;display:block;">
                    <?foreach($time_pair as $k_time=>$v_time){?>
            			<?if($k_time>=$start_book_time){?>
		            	<?if($teacherOpenClassPair[$v['id']][$k_time]['open_time']){
		            		?>
		            		<span class="Teach_class_info">
			            	<input type="button" name="search"  value="   OPEN   " class="Teach_opened" onClick="javaScript:openClass('<?=$teacherOpenClassPair[$v['id']][$k_time]['open_date']?>','<?=$teacherOpenClassPair[$v['id']][$k_time]['open_time']?>','<?=$v['id']?>')">
			            	</span>
		            	<?}else{?>
		            	<span class="Teach_class_info">
			            	<input type="button" name="search"  value="CLOSED" class="Teach_closed">
			            	</span>
		            	<?}}?>
	            	<?}?>
	                 </div>           
                </li>
                <?if(($i+1)%4==0){?>    
            		</ul>	    
            	<?}?>                 
                <?
                $i++;
				}
				?>
		    </div>
            <div align="center" style="padding-bottom:15px;padding-top:15px;padding-left:300px;display:block;float:left;">
        <?=$page?></div>
    <div class="clearc"></div>
</div>
<script type="text/javascript" src="user/js/teach.min.js?v=<?=WEB_VERSION?>?v=1.37"></script>
<?
$date = isset($_GET['date'])?$_GET['date']:'';
?>
<script>
function openClass(book_date,book_time,book_teacher){
	location.href="user_booking.htm?book_date="+book_date+"&book_time="+book_time+"&book_teacher="+book_teacher;
}
</script>
</div>
<div class="clearc mt20"></div>
<?
include('userFoot.php')
?>
</body>
</html>
